<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 *复写Loader类，实现前后台分离
 */
class MY_Loader extends CI_Loader{

	/**
	 *@Load_Foreground 装载前台视图
	 */
	public function Load_Foreground()
	{
		$this->_ci_view_paths = array(FOREGROUND => TRUE);
	}

	/**
	 *@Load_Background 装载后台视图
	 */
	public function Load_Background()
	{
		//var_dump(FOREGROUND);
		$this->_ci_view_paths = array(APPPATH.'views/'	=> TRUE);
	}
}

?>